<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/common/css/bootstrap.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/common/css/bootstrap-table.min.css">
<script type="text/javascript">
	function checkDel() {
		if (confirm("确定要删除吗？")) {
			return true;
		} else {
			return false;
		}
	}
</script>
</head>
<body>
	<div class="page-wrap">
		<div class="container-fluid">
			<div class="row-fluid">
				<h3>信息列表</h3>
				<div class="well-content">
					<table class="table table-striped table-bordered"
						id="managed-table" data-toggle="table" data-show-columns="true"
						data-search="true" data-show-refresh="true"
						data-show-toggle="true" data-pagination="true">
						<thead>
							<tr>
								<th>ID号</th>
								<th>水文站名称</th>
								<th>站址</th>
								<th>水位(米)</th>
								<th>水流量(米^3/秒)</th>
								<th>警戒水位(米)</th>
								<th>备注</th>
								<th>发布人</th>
								<th>创建日期</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list }" var="bean">
								<tr>
									<td>${bean.id }</td>
									<td>${bean.name }</td>
									<td>${bean.address }</td>
									<td>${bean.waterLevel }</td>
									<td>${bean.waterFlow }</td>
									<td>${bean.warningWaterLevel }</td>
									<td>${bean.notes}</td>
									<td>${bean.userBean.username }</td>
									<td>${bean.refreshTime }</td>
									<td class="btn btn-default"><a
										href=" ${pageContext.request.contextPath}/reporter4/toUpdateHydroStatAction?id=${bean.id}">修改</a>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
										onclick="return checkDel()"
										href=" ${pageContext.request.contextPath}/reporter4/deleteHydroStatAction?id=${bean.id }">删除</a>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<script
		src="${pageContext.request.contextPath}/common/js/jquery.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/bootstrap.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/tableExport.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/jquery.base64.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/bootstrap-table.js"></script>
	<script
		src="${pageContext.request.contextPath}/common/js/bootstrap-table-export.js"></script>
</body>
</html>